package com.xzh.springCloud.config;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhiHong
 * @CreateTime: 2023-08-28 8:56
 * @Description: 配置路由类
 */
@Configuration
public class GatewayRoutesConfig {
    // @Bean
    //public RouteLocator myRoutesLocator04(RouteLocatorBuilder routeLocatorBuilder) {
    //    RouteLocatorBuilder.Builder routes = routeLocatorBuilder.routes();
    //    return routes.route("member_router04", r -> r.path("/member/get/**").uri("http://localhost:10000")).build();
    //}
}
